<div class="contratantes view">
	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Empresa Contratante'); ?></h1>
			</div>
		</div>
	</div>

	<div class="row">

		<div class="col-md-3">
			<div class="actions">
				<div class="panel panel-default">
					<div class="panel-heading">Actions</div>
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">
									<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>&nbsp&nbsp;Editar Contratante'), array('action' => 'edit', $contratante['Contratante']['id']), array('escape' => false)); ?> </li>
									<li><?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>&nbsp;&nbsp;Deletar Contratante'), array('action' => 'delete', $contratante['Contratante']['id']), array('escape' => false), __('Você tem certeza que deseja deletar %s?', $contratante['Contratante']['nome'])); ?> </li>
									<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp&nbsp;Contratantes'), array('action' => 'index'), array('escape' => false)); ?> </li>
							</ul>
						</div><!-- end body -->
				</div><!-- end panel -->
			</div><!-- end actions -->
		</div><!-- end col md 3 -->

		<div class="col-md-9">			
			<table cellpadding="0" cellspacing="0" class="table table-striped">
				<tbody>
<tr>
		<th><?php echo __('Nome'); ?></th>
		<td>
			<?php echo h($contratante['Contratante']['nome']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Cnpj'); ?></th>
		<td>
			<?php echo h($contratante['Contratante']['cnpj']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Inscricao Estadual'); ?></th>
		<td>
			<?php echo h($contratante['Contratante']['inscricao_estadual']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Logradouro'); ?></th>
		<td>
			<?php echo h($contratante['Contratante']['logradouro']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Complemento'); ?></th>
		<td>
			<?php echo h($contratante['Contratante']['complemento']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Cep'); ?></th>
		<td>
			<?php echo h($contratante['Contratante']['cep']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Cidade'); ?></th>
		<td>
			<?php echo h($contratante['Contratante']['cidade']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Uf'); ?></th>
		<td>
			<?php echo h($contratante['Contratante']['uf']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Pais'); ?></th>
		<td>
			<?php echo h($contratante['Contratante']['pais']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Data Cadastro'); ?></th>
		<td>
			<?php echo h($contratante['Contratante']['data_cadastro']); ?>
			&nbsp;
		</td>
</tr>
				</tbody>
			</table>

		</div><!-- end col md 9 -->

	</div>
</div>

<div class="related row">
	<div class="col-md-12">
	<h3><?php echo __('Related Escopos'); ?></h3>
	<?php if (!empty($contratante['Escopo'])): ?>
	<table cellpadding = "0" cellspacing = "0" class="table table-striped">
	<thead>
	<tr>
		<th><?php echo __('Nome'); ?></th>
		<th><?php echo __('Descricao'); ?></th>
		<th><?php echo __('Data Inicio'); ?></th>
		<th><?php echo __('Data Moficacao'); ?></th>

		<th class="actions"></th>
	</tr>
	<thead>
	<tbody>
	<?php foreach ($contratante['Escopo'] as $escopo): ?>
		<tr>
			<td><?php echo $escopo['nome']; ?></td>
			<td><?php echo $escopo['descricao']; ?></td>
			<td><?php echo $escopo['data_inicio']; ?></td>
			<td><?php echo $escopo['data_moficacao']; ?></td>

			<td class="actions">
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-search"></span>'), array('controller' => 'escopos', 'action' => 'view', $escopo['id']), array('escape' => false)); ?>
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>'), array('controller' => 'escopos', 'action' => 'edit', $escopo['id']), array('escape' => false)); ?>
				<?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>'), array('controller' => 'escopos', 'action' => 'delete', $escopo['id']), array('escape' => false), __('Você tem certeza que que deseja deletar %s?', $escopo['nome'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
	</table>
<?php endif; ?>

	<div class="actions">
		<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;Adicionar Escopo'), array('controller' => 'escopos', 'action' => 'add'), array('escape' => false, 'class' => 'btn btn-default')); ?> 
	</div>
	</div><!-- end col md 12 -->
</div>
<div class="related row">
	<div class="col-md-12">
	<h3><?php echo __('Related Stakeholders'); ?></h3>
	<?php if (!empty($contratante['Stakeholder'])): ?>
	<table cellpadding = "0" cellspacing = "0" class="table table-striped">
	<thead>
	<tr>

		<th><?php echo __('Nome'); ?></th>
		<th><?php echo __('Descricao'); ?></th>
		<th><?php echo __('Nivel Experiencia'); ?></th>
		<th><?php echo __('Requisito Id'); ?></th>
		<th class="actions"></th>
	</tr>
	<thead>
	<tbody>
	<?php foreach ($contratante['Stakeholder'] as $stakeholder): ?>
		<tr>

			<td><?php echo $stakeholder['nome']; ?></td>
			<td><?php echo $stakeholder['descricao']; ?></td>
			<td><?php echo $stakeholder['nivel_experiencia']; ?></td>
			<td><?php echo $stakeholder['requisito_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-search"></span>'), array('controller' => 'stakeholders', 'action' => 'view', $stakeholder['id']), array('escape' => false)); ?>
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>'), array('controller' => 'stakeholders', 'action' => 'edit', $stakeholder['id']), array('escape' => false)); ?>
				<?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>'), array('controller' => 'stakeholders', 'action' => 'delete', $stakeholder['id']), array('escape' => false), __('Você tem certeza que que deseja deletar # %s?', $stakeholder['nome'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
	</table>
<?php endif; ?>

	<div class="actions">
		<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;Adicionar Stakeholder'), array('controller' => 'stakeholders', 'action' => 'add'), array('escape' => false, 'class' => 'btn btn-default')); ?> 
	</div>
	</div><!-- end col md 12 -->
</div>
